package com.ckf.es.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;

/**
 * @author: serene
 * @date: 2020/9/7 11:00
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "company",type = "employee", shards = 1,replicas = 0, refreshInterval = "-1")
public class Employee implements Serializable {

    @Id
    private String id;

    private String firstName;

    private String lastName;

    private Integer age = 0;

    private String about;

}
